import { createStore } from 'vuex'
import {store} from 'core-js/internals/reflect-metadata'

export default createStore({
  state: {
    hostUrl: 'https://apis.netstart.cn',
    music:'/music/search?keywords=',
    suggest:'/music/search/suggest?type=mobile&keywords=',
    isUse:'/music/check/music?id=',
    songUrl:'/music/song/detail?ids=',
    bingUrl:'https://cn.bing.com/',
    song:{},
    playSong:false,
  },
  mutations: {
  },
  actions: {
    setSongUrl( song) {
      store.state.song = song
      
    },
    
    setPlaySong( playSong) {
      store.state.playSong = playSong
    }
    
  },
  modules: {
  }
})
